package cn.zyq.ykb.controller.h5.game;

import cn.zyq.ykb.service.pay.PayOrderService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 游戏回调Controller
 *
 * @author SystemAuth
 * @date 2023-06-01
 */

@RestController(value = "H5GameController")
@RequestMapping("/api/game")
@Api(tags = "游戏回调接口")
public class GameController {
    @Autowired
    private PayOrderService payOrderService;

    @GetMapping("gameAndroidNotify")
    public Object gameNotify(HttpServletRequest request, HttpServletResponse response){
        return payOrderService.gameNotify(request, response);
    }

    @GetMapping("gameIOSNotify")
    public Object gameIOSNotify(HttpServletRequest request, HttpServletResponse response){
        return payOrderService.gameIOSNotify(request, response);
    }
}
